package com.java.action;

import java.util.List;

import com.java.service.IDeptService;
import com.opensymphony.xwork2.ActionSupport;
import com.training.pojo.chengshu.UDept;
import com.training.pojo.chengshu.UUser;

public class ShowBeforeModify extends ActionSupport{

	private IDeptService deptService;
	private List<UUser> mgrlist;
	private UDept dept;
	private Integer deptid;
	
	public String execute(){
		mgrlist = deptService.userList();
		dept = deptService.getDept(deptid);
		//System.out.println(dept+"acccccccccccc");
		return "success";
	}

	public IDeptService getDeptService() {
		return deptService;
	}

	public void setDeptService(IDeptService deptService) {
		this.deptService = deptService;
	}

	public List<UUser> getMgrlist() {
		return mgrlist;
	}

	public void setMgrlist(List<UUser> mgrlist) {
		this.mgrlist = mgrlist;
	}

	public UDept getDept() {
		return dept;
	}

	public void setDept(UDept dept) {
		this.dept = dept;
	}

	public Integer getDeptid() {
		return deptid;
	}

	public void setDeptid(Integer deptid) {
		this.deptid = deptid;
	}
	
}
